// To parse this JSON data, do
//
//     final appDeviceListModel = appDeviceListModelFromJson(jsonString);

import 'dart:convert';

AppDeviceListModel appDeviceListModelFromJson(String str) => AppDeviceListModel.fromJson(json.decode(str));

String appDeviceListModelToJson(AppDeviceListModel data) => json.encode(data.toJson());

class AppDeviceListModel {
  AppDeviceListModel({
    this.devid,
    this.channelName,
    this.userType,
    this.devType,
    this.contractName,
    this.contractTel,
    this.devAddress,
    this.devStatus,
    this.createTime,
    this.updateTime,
    this.oriTds,
    this.cleanTds,
    this.firstValue,
    this.secondValue,
    this.thirdValue,
    this.fouthValue,
    this.fifthValue,
    this.remainFlow,
    this.remainDays,
    this.usedFlow,
    this.usedDays,
    this.maxDay,
    this.maxFlow,
    this.firstBfb,
    this.secondBfb,
    this.thirdBfb,
    this.fouthBfb,
    this.fifthBfb,
    this.isOnline,
    this.devSn,
    this.userName,
    this.channelId,
    this.hirdBfb,
  });

  String? devid;
  String? channelName;
  dynamic userType;
  String? devType;
  String? contractName;
  String? contractTel;
  String? devAddress;
  String? devStatus;
  String? createTime;
  String? updateTime;
  int? oriTds;
  int? cleanTds;
  int? firstValue;
  int? secondValue;
  int? thirdValue;
  int? fouthValue;
  int? fifthValue;
  int? remainFlow;
  int? remainDays;
  int? usedFlow;
  int? usedDays;
  dynamic maxDay;
  int? maxFlow;
  int? firstBfb;
  int? secondBfb;
  int? thirdBfb;
  int? fouthBfb;
  int? fifthBfb;
  String? isOnline;
  String? devSn;
  String? userName;
  String? channelId;
  int? hirdBfb;

  factory AppDeviceListModel.fromJson(Map<String, dynamic> json) => AppDeviceListModel(
        devid: json["devid"],
        channelName: json["channel_name"],
        userType: json["user_type"],
        devType: json["dev_type"],
        contractName: json["contract_name"],
        contractTel: json["contract_tel"],
        devAddress: json["dev_address"],
        devStatus: json["dev_status"],
        createTime: json["create_time"],
        updateTime: json["update_time"],
        oriTds: json["ori_tds"],
        cleanTds: json["clean_tds"],
        firstValue: json["first_value"],
        secondValue: json["second_value"],
        thirdValue: json["third_value"],
        fouthValue: json["fouth_value"],
        fifthValue: json["fifth_value"],
        remainFlow: json["remain_flow"],
        remainDays: json["remain_days"],
        usedFlow: json["used_flow"],
        usedDays: json["used_days"],
        maxDay: json["max_day"],
        maxFlow: json["max_flow"],
        firstBfb: json["first_bfb"],
        secondBfb: json["second_bfb"],
        thirdBfb: json["third_bfb"],
        fouthBfb: json["fouth_bfb"],
        fifthBfb: json["fifth_bfb"],
        isOnline: json["is_online"],
        devSn: json["dev_sn"],
        userName: json["user_name"],
        channelId: json["channel_id"],
        hirdBfb: json["hird_bfb"],
      );

  Map<String, dynamic> toJson() => {
        "devid": devid,
        "channel_name": channelName,
        "user_type": userType,
        "dev_type": devType,
        "contract_name": contractName,
        "contract_tel": contractTel,
        "dev_address": devAddress,
        "dev_status": devStatus,
        "create_time": createTime,
        "update_time": updateTime,
        "ori_tds": oriTds,
        "clean_tds": cleanTds,
        "first_value": firstValue,
        "second_value": secondValue,
        "third_value": thirdValue,
        "fouth_value": fouthValue,
        "fifth_value": fifthValue,
        "remain_flow": remainFlow,
        "remain_days": remainDays,
        "used_flow": usedFlow,
        "used_days": usedDays,
        "max_day": maxDay,
        "max_flow": maxFlow,
        "first_bfb": firstBfb,
        "second_bfb": secondBfb,
        "third_bfb": thirdBfb,
        "fouth_bfb": fouthBfb,
        "fifth_bfb": fifthBfb,
        "is_online": isOnline,
        "dev_sn": devSn,
        "user_name": userName,
        "channel_id": channelId,
        "hird_bfb": hirdBfb,
      };
}
